package test4
//继承了父类，实现了接口
class DigitCamera(n:String,t:String,d:Double,b:String) extends Camera(b:String) with Usb {
  override val name: String = n
  override val types: String = t
  override val DV: Double = d
  //override  val brand=b

  override def plugin(): Unit = {
    println(brand+"数码相机"+name+"接上了usb口，准备传输照片")
  }

  override def unplugin: Unit = {
    println("数码相机"+name+"传输照片完成，拔下来")
  }
}

